const webpack = require('webpack');
const merge = require('webpack-merge')
const common = require('./webpack.common')
const path = require('path')
module.exports = merge( common,{
    mode: "development",
    
    devServer: {
        contentBase: [path.join(__dirname,'public'), path.join(__dirname,'src','assets')],
        historyApiFallback:true,
        hot: true,
        inline: true,
        port: 9000,
    },
    
    plugins: [
        new webpack.HotModuleReplacementPlugin(),
    ],
    externals: {
        'babel-polyfill': 'window'
    },
    devtool: 'source-map'
})